/ MacTech 1 to 12
/ MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.12 Dec 95 / Frontier CGIs / CGI Framework 3.0.1 / Install files / webserver.errorMessage ![]() | < prev | next > |
MacBinary | 1995-09-22 | 2.4 KB | [2CLK/LAND] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Fri Sep 22 16:14:08 1995, modified Fri Sep 22 16:14:11 1995, creator 'LAND', type '2CLK' "webserver.errorMessage", at 0x80 2260 bytes resource Apple HFS/HFS+ resource fork, map offset 0x838, map length 0x9c, data length 0x738, at 16 0x65727665, nextResourceMap 0xcd5a1c, fileRef 0x10e6, list offset 0x1c, name offset 0x7e, 3 types, 0x53545220 'STR ' * 4 resource offset 0x1a | default (weak) | |
99% | file | data | default | |
100% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [2CLK] |
macFileCreator | [LAND] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 77 65 62 73 65 72 | 76 65 72 2e 65 72 72 6f |..webser|ver.erro|
|00000010| 72 4d 65 73 73 61 67 65 | 00 00 00 00 00 00 00 00 |rMessage|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 32 43 4c 4b 4c 41 4e | 44 01 00 00 00 00 00 00 |.2CLKLAN|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 08 d4 ac 88 c9 90 ac |........|........|
|00000060| 88 c9 93 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8a fb 00 00 |........|........|
|00000080| 00 00 01 00 00 00 08 38 | 00 00 07 38 00 00 00 9c |.......8|...8....|
|00000090| 65 72 76 65 72 2e 65 72 | 72 6f 72 4d 65 73 73 61 |erver.er|rorMessa|
|000000a0| 67 65 ff ff 00 00 00 00 | 01 00 00 00 02 26 00 00 |ge......|.....&..|
|000000b0| 16 77 65 62 73 65 72 76 | 65 72 2e 65 72 72 6f 72 |.webserv|er.error|
|000000c0| 4d 65 73 73 61 67 65 65 | 02 00 00 00 32 43 4c 4b |Messagee|....2CLK|
|000000d0| 00 00 32 43 4c 4b 4c 41 | 4e 44 01 00 00 00 00 00 |..2CLKLA|ND......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ac 88 c9 90 00 00 | 00 00 00 00 08 d4 6a 0d |........|......j.|
|00000100| 90 0d 55 cb bd e9 28 c3 | 49 ef 11 31 b7 c3 dd 54 |..U...(.|I..1...T|
|00000110| c2 81 fa fa 42 d7 52 76 | c6 a8 b5 d1 d4 c0 db 57 |....B.Rv|.......W|
|00000120| 64 2b 62 39 8e ab cd 48 | 4e c0 9b 20 86 af 4e 8c |d+b9...H|N.. ..N.|
|00000130| f0 a3 de a1 1e 49 ae 6d | 9e c3 49 6b 19 e2 6c fc |.....I.m|..Ik..l.|
|00000140| 4d 56 94 12 57 54 8f 31 | 16 45 86 e4 f3 f8 54 ff |MV..WT.1|.E....T.|
|00000150| 66 2b d3 a5 29 29 5c 5d | 08 47 7b b8 81 f7 ca 62 |f+..))\]|.G{....b|
|00000160| ef cf 09 c3 08 42 92 74 | 16 d2 af 70 22 f1 14 6b |.....B.t|...p"..k|
|00000170| 7d 74 5b 08 95 eb ec 06 | 94 d6 77 85 eb 65 62 5b |}t[.....|..w..eb[|
|00000180| 00 00 00 06 05 34 2e 30 | 62 31 00 00 00 09 08 46 |.....4.0|b1.....F|
|00000190| 72 6f 6e 74 69 65 72 00 | 00 00 f0 00 01 04 0a 00 |rontier.|........|
|000001a0| 02 00 00 00 0c 00 00 00 | 68 00 00 02 00 00 0f 06 |........|h.......|
|000001b0| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 0c 00 00 00 00 00 | 00 00 00 00 00 06 54 00 |........|......T.|
|000001e0| 00 a4 d0 77 90 ac 88 c9 | 91 00 00 00 09 00 00 00 |...w....|........|
|000001f0| a0 00 32 01 04 02 12 4c | 41 4e 44 00 00 00 00 00 |..2....L|AND.....|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 6f | 6e 20 63 61 6c 6c 69 6d |.......o|n callim|
|00000220| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 20 c7 74 |porter (|path) .t|
|00000230| 68 69 73 20 73 63 72 69 | 70 74 20 69 73 20 73 61 |his scri|pt is sa|
|00000240| 76 65 64 20 77 69 74 68 | 20 61 6c 6c 20 65 78 70 |ved with| all exp|
|00000250| 6f 72 74 65 64 20 6f 62 | 6a 65 63 74 73 0d 09 72 |orted ob|jects..r|
|00000260| 65 74 75 72 6e 20 28 65 | 78 70 6f 72 74 2e 69 6d |eturn (e|xport.im|
|00000270| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 29 0d 80 |porter (|path))..|
|00000280| 00 00 00 00 00 80 00 00 | 00 00 00 00 00 00 0d 0c |........|........|
|00000290| 63 61 6c 6c 69 6d 70 6f | 72 74 65 72 00 00 00 02 |callimpo|rter....|
|000002a0| 01 31 00 00 06 12 73 63 | 70 74 00 01 04 0a 00 02 |.1....sc|pt......|
|000002b0| 00 00 00 ba 00 00 04 d8 | 00 19 02 00 00 0f 06 47 |........|.......G|
|000002c0| 65 6e 65 76 61 00 00 00 | 00 00 00 00 00 00 00 00 |eneva...|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 09 00 00 00 00 00 07 | 00 07 00 00 06 54 00 0f |........|.....T..|
|000002f0| ac 52 c5 7b ac 88 c9 93 | 00 00 00 11 00 00 00 2b |.R.{....|.......+|
|00000300| 00 09 01 84 02 80 4c 41 | 4e 44 00 00 00 00 00 00 |......LA|ND......|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 6f 6e | 20 65 72 72 6f 72 4d 65 |......on| errorMe|
|00000330| 73 73 61 67 65 20 28 65 | 72 72 4d 73 67 2c 20 64 |ssage (e|rrMsg, d|
|00000340| 61 74 61 41 64 72 20 3d | 20 6e 69 6c 29 0d 09 74 |ataAdr =| nil)..t|
|00000350| 72 79 0d 09 09 65 72 72 | 4d 73 67 20 3d 20 74 6f |ry...err|Msg = to|
|00000360| 79 73 2e 63 6c 65 61 6e | 46 6f 72 45 78 70 6f 72 |ys.clean|ForExpor|
|00000370| 74 20 28 65 72 72 4d 73 | 67 29 0d 09 09 62 75 6e |t (errMs|g)...bun|
|00000380| 64 6c 65 20 c7 6c 6f 67 | 20 65 72 72 6f 72 0d 09 |dle .log| error..|
|00000390| 09 09 6c 6f 63 61 6c 0d | 09 09 09 09 66 50 61 74 |..local.|....fPat|
|000003a0| 68 20 3d 20 66 69 6c 65 | 2e 66 6f 6c 64 65 72 46 |h = file|.folderF|
|000003b0| 72 6f 6d 50 61 74 68 20 | 28 46 72 6f 6e 74 69 65 |romPath |(Frontie|
|000003c0| 72 2e 67 65 74 50 72 6f | 67 72 61 6d 50 61 74 68 |r.getPro|gramPath|
|000003d0| 20 28 29 29 20 2b 20 22 | 45 72 72 6f 72 2e 6c 6f | ()) + "|Error.lo|
|000003e0| 67 22 0d 09 09 09 09 6c | 6f 67 53 74 72 69 6e 67 |g".....l|ogString|
|000003f0| 20 3d 20 73 74 72 69 6e | 67 2e 72 65 70 6c 61 63 | = strin|g.replac|
|00000400| 65 20 28 63 6c 6f 63 6b | 2e 6e 6f 77 20 28 29 2c |e (clock|.now (),|
|00000410| 20 22 3b 20 22 2c 20 74 | 61 62 29 20 2b 20 74 61 | "; ", t|ab) + ta|
|00000420| 62 20 2b 20 65 72 72 4d | 73 67 0d 09 09 09 69 66 |b + errM|sg....if|
|00000430| 20 21 66 69 6c 65 2e 65 | 78 69 73 74 73 20 28 66 | !file.e|xists (f|
|00000440| 50 61 74 68 29 20 c7 63 | 72 65 61 74 65 20 66 69 |Path) .c|reate fi|
|00000450| 6c 65 20 77 69 74 68 20 | 66 69 65 6c 64 20 6e 61 |le with |field na|
|00000460| 6d 65 20 69 6e 20 66 69 | 72 73 74 20 6c 69 6e 65 |me in fi|rst line|
|00000470| 0d 09 09 09 09 66 69 6c | 65 2e 6e 65 77 20 28 66 |.....fil|e.new (f|
|00000480| 50 61 74 68 29 0d 09 09 | 09 09 66 69 6c 65 2e 73 |Path)...|..file.s|
|00000490| 65 74 54 79 70 65 20 28 | 66 50 61 74 68 2c 20 27 |etType (|fPath, '|
|000004a0| 54 45 58 54 27 29 0d 09 | 09 09 09 66 69 6c 65 2e |TEXT')..|...file.|
|000004b0| 73 65 74 43 72 65 61 74 | 6f 72 20 28 66 50 61 74 |setCreat|or (fPat|
|000004c0| 68 2c 20 27 52 2a 63 68 | 27 29 0d 09 09 09 73 65 |h, 'R*ch|')....se|
|000004d0| 6d 61 70 68 6f 72 65 73 | 2e 6c 6f 63 6b 20 28 22 |maphores|.lock ("|
|000004e0| 65 72 72 6f 72 2e 6c 6f | 67 22 2c 20 33 36 30 30 |error.lo|g", 3600|
|000004f0| 29 0d 09 09 09 74 72 79 | 0d 09 09 09 09 66 69 6c |)....try|.....fil|
|00000500| 65 2e 77 72 69 74 65 4c | 69 6e 65 20 28 66 50 61 |e.writeL|ine (fPa|
|00000510| 74 68 2c 20 6c 6f 67 53 | 74 72 69 6e 67 29 0d 09 |th, logS|tring)..|
|00000520| 09 09 09 69 66 20 28 64 | 61 74 61 41 64 72 20 ad |...if (d|ataAdr .|
|00000530| 20 6e 69 6c 29 20 61 6e | 64 20 28 64 65 66 69 6e | nil) an|d (defin|
|00000540| 65 64 20 28 64 61 74 61 | 41 64 72 29 29 20 61 6e |ed (data|Adr)) an|
|00000550| 64 20 28 77 65 62 73 65 | 72 76 65 72 2e 70 72 65 |d (webse|rver.pre|
|00000560| 66 65 72 65 6e 63 65 73 | 2e 76 65 72 62 6f 73 65 |ferences|.verbose|
|00000570| 4c 6f 67 67 69 6e 67 29 | 20 c7 76 65 72 62 6f 73 |Logging)| .verbos|
|00000580| 65 20 6c 6f 67 67 69 6e | 67 20 2d 2d 20 73 74 69 |e loggin|g -- sti|
|00000590| 6c 6c 20 74 65 73 74 69 | 6e 67 0d 09 09 09 09 09 |ll testi|ng......|
|000005a0| 6c 6f 63 61 6c 20 28 69 | 29 0d 09 09 09 09 09 66 |local (i|)......f|
|000005b0| 6f 72 20 69 20 3d 20 31 | 20 74 6f 20 73 69 7a 65 |or i = 1| to size|
|000005c0| 4f 66 20 28 64 61 74 61 | 41 64 72 5e 29 0d 09 09 |Of (data|Adr^)...|
|000005d0| 09 09 09 09 66 69 6c 65 | 2e 77 72 69 74 65 4c 69 |....file|.writeLi|
|000005e0| 6e 65 20 28 66 50 61 74 | 68 2c 20 6e 61 6d 65 4f |ne (fPat|h, nameO|
|000005f0| 66 20 28 64 61 74 61 41 | 64 72 5e 5b 69 5d 29 20 |f (dataA|dr^[i]) |
|00000600| 2b 20 22 3a 20 22 20 2b | 20 64 61 74 61 41 64 72 |+ ": " +| dataAdr|
|00000610| 5e 5b 69 5d 29 0d 09 09 | 09 09 73 65 6d 61 70 68 |^[i])...|..semaph|
|00000620| 6f 72 65 73 2e 75 6e 6c | 6f 63 6b 20 28 22 65 72 |ores.unl|ock ("er|
|00000630| 72 6f 72 2e 6c 6f 67 22 | 29 0d 09 09 09 65 6c 73 |ror.log"|)....els|
|00000640| 65 0d 09 09 09 09 73 65 | 6d 61 70 68 6f 72 65 73 |e.....se|maphores|
|00000650| 2e 75 6e 6c 6f 63 6b 20 | 28 22 65 72 72 6f 72 2e |.unlock |("error.|
|00000660| 6c 6f 67 22 29 0d 09 09 | 6c 6f 63 61 6c 20 28 78 |log")...|local (x|
|00000670| 29 0d 09 09 69 66 20 74 | 79 70 65 4f 66 20 28 64 |)...if t|ypeOf (d|
|00000680| 61 74 61 41 64 72 29 20 | ad 20 61 64 64 72 65 73 |ataAdr) |. addres|
|00000690| 73 54 79 70 65 20 c7 63 | 72 65 61 74 65 20 61 6e |sType .c|reate an|
|000006a0| 20 61 64 64 72 65 73 73 | 20 74 6f 20 61 20 74 61 | address| to a ta|
|000006b0| 62 6c 65 0d 09 09 09 6e | 65 77 20 28 74 61 62 6c |ble....n|ew (tabl|
|000006c0| 65 54 79 70 65 2c 20 40 | 78 29 0d 09 09 09 64 61 |eType, @|x)....da|
|000006d0| 74 61 41 64 72 20 3d 20 | 40 78 0d 09 09 64 61 74 |taAdr = |@x...dat|
|000006e0| 61 41 64 72 5e 2e 65 72 | 72 6f 72 4d 65 73 73 61 |aAdr^.er|rorMessa|
|000006f0| 67 65 20 3d 20 65 72 72 | 4d 73 67 0d 09 09 6c 6f |ge = err|Msg...lo|
|00000700| 63 61 6c 20 28 68 74 6d | 6c 74 65 78 74 20 3d 20 |cal (htm|ltext = |
|00000710| 77 65 62 73 65 72 76 65 | 72 2e 68 74 74 70 48 65 |webserve|r.httpHe|
|00000720| 61 64 65 72 20 28 29 2c | 20 65 72 72 50 61 67 65 |ader (),| errPage|
|00000730| 20 3d 20 73 74 72 69 6e | 67 20 28 77 65 62 73 65 | = strin|g (webse|
|00000740| 72 76 65 72 2e 70 72 65 | 66 65 72 65 6e 63 65 73 |rver.pre|ferences|
|00000750| 2e 65 72 72 6f 72 50 61 | 67 65 29 29 0d 09 09 68 |.errorPa|ge))...h|
|00000760| 74 6d 6c 74 65 78 74 20 | 3d 20 68 74 6d 6c 74 65 |tmltext |= htmlte|
|00000770| 78 74 20 2b 20 77 65 62 | 73 65 72 76 65 72 2e 75 |xt + web|server.u|
|00000780| 74 69 6c 69 74 69 65 73 | 2e 70 72 6f 63 65 73 73 |tilities|.process|
|00000790| 4d 61 63 72 6f 73 20 28 | 65 72 72 50 61 67 65 2c |Macros (|errPage,|
|000007a0| 20 64 61 74 61 41 64 72 | 29 0d 09 09 72 65 74 75 | dataAdr|)...retu|
|000007b0| 72 6e 20 28 68 74 6d 6c | 74 65 78 74 29 0d 09 65 |rn (html|text)..e|
|000007c0| 6c 73 65 0d 09 09 72 65 | 74 75 72 6e 20 28 22 41 |lse...re|turn ("A|
|000007d0| 6e 20 75 6e 72 65 63 6f | 76 65 72 61 62 6c 65 20 |n unreco|verable |
|000007e0| 65 72 72 6f 72 20 6f 63 | 63 75 72 72 65 64 20 69 |error oc|curred i|
|000007f0| 6e 20 46 72 6f 6e 74 69 | 65 72 2e 22 29 0d 80 00 |n Fronti|er.")...|
|00000800| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000810| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000820| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00000830| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000840| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000850| 00 00 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000870| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000880| 00 00 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|000008a0| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|000008b0| 00 00 80 00 00 00 00 00 | 00 00 01 00 00 00 08 38 |........|.......8|
|000008c0| 00 00 07 38 00 00 00 9c | 00 cd 5a 1c 10 e6 00 00 |...8....|..Z.....|
|000008d0| 00 1c 00 7e 00 02 53 54 | 52 20 00 03 00 1a 73 63 |...~..ST|R ....sc|
|000008e0| 70 74 00 00 00 4a 64 61 | 74 61 00 00 00 56 00 80 |pt...Jda|ta...V..|
|000008f0| ff ff 00 00 00 00 00 00 | 00 00 bf f4 ff ff 00 00 |........|........|
|00000900| 00 0a 00 00 00 00 00 82 | ff ff 00 00 01 0b 00 00 |........|........|
|00000910| 00 00 00 7f ff ff 00 00 | 01 1c 00 00 00 00 00 81 |........|........|
|00000920| ff ff 00 00 00 17 00 00 | 00 00 72 62 00 00 00 00 |........|..rb....|
|00000930| 01 22 00 cc a6 9c 1d 73 | 75 69 74 65 73 2e 77 65 |.".....s|uites.we|
|00000940| 62 73 65 72 76 65 72 2e | 65 72 72 6f 72 4d 65 73 |bserver.|errorMes|
|00000950| 73 61 67 65 00 00 00 00 | 00 00 00 00 00 00 00 00 |sage....|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+